<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script>
    function Star(uname,age,sex) {
        this.name = uname;
        this.age = age;
        this.sex = sex;
    }
    var ldh = new Star('刘德华',17,'男');
    console.log(ldh.name);
</script>
<body>

</body>
</html>